<template>

  <div class="article_details">

    <van-nav-bar :title="one.title" left-text="返回" left-arrow @click-left="$router.back()" />


    <div v-html="one.content" class="rich"></div>




  </div>

</template>

<script>
  export default {
    data() {
      return {
        one: {}
      }
    },

    created() {


      this.loadViews(this.$route.query.id)

    },

    methods: {

      loadViews(id) {

        this.apiPost('/shop.article/views', { id: id }).then(res => {
          this.one = res.data;
        });


      }

    },

  }
</script>

<style>
  .rich {
    padding: 15px;
    line-height: 1.8;
  }
  .rich img {
    display: block;
    max-width: 100%;
  }
</style>
